<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.enums.*"%>
<html>
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title>矿山救护远程调度管理指挥系统</title>
	<link href="../../css/style.css" rel="stylesheet" type="text/css">
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
	<script type="text/javascript">
		var currTreeInputObj = null;// 当前点击显示数输入框
		function showTree(obj) {
			currTreeInputObj = obj.childNodes[0];
			frame.location.href = "../common/deptTree.jsp";
			var treeFrame = document.getElementById("treeFrame");
			treeFrame.style.display = "";
			var region = obj.getBoundingClientRect();
			treeFrame.style.left = region.left;
			treeFrame.style.top = region.bottom;
			treeFrame.style.width = obj.clientWidth;
			treeFrame.style.height = 200;
		}

		function clickBody() {
			var srcObj = event.srcElement;
			var treeFrame = document.getElementById("treeFrame");
			if(srcObj.treeSelect == "true"){
				
			}else {
				treeFrame.style.display = "none";
			}
		}
		function selectNode(id, title){
			currTreeInputObj.value = title;
			currTreeInputObj.nextSibling.value = id;
			var treeFrame = document.getElementById("treeFrame");
			treeFrame.style.display = "none";
       }

		// 查询
	    function search() {
	    	var queryInputObj = document.getElementById("queryInputObj");	
			var querySelObj = document.getElementById("querySelObj");
			if(queryInputObj.style.display == ""){
				searchForm.queryValue.value = queryInputObj.value;
			}else {
				searchForm.queryValue.value = querySelObj.value;
			}
			//alert(searchForm.queryName.value + "=" + searchForm.queryValue.value);
	    	searchForm.submit();
		}

		// 新增
		function addItem() {
			var url = "personManage_edit.jsp";
			var width = '1000px';
			var height ='1000px';
			var arg = "dialogHeight:" + height + ";dialogWidth:" + width + ";status:no;location:no;";
			//window.open(url);
			var returnValue = window.showModalDialog(url, "", arg);
			//window.location.reload();
			dataFrame.location.reload();
		}

		// 批量删除
		function delBatch(){
			var selectedItems = dataFrame.selectedItems;
			var delIds = "";
			for(var i = 0; i < selectedItems.length; i++){
				delIds +=";" + selectedItems[i];
		    }
			delIds = delIds.replace(";", "");
			if(delIds != ""){
				delForm.batchIds.value = delIds;
				delForm.submit();
			}
	    }
	</script>
<body rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0" onclick="clickBody();" style="background: #ffffff;">
<form name="searchForm" id="searchForm" action="personManage_data.jsp" target="dataFrame" method="get">
<table width="100%" height="100%"  border="0" align="center" cellpadding="0" cellspacing="0" style="table-layout: fixed;">
	<!-- 位置导航栏 -->
	<tr height="25px">
		<td width="100%" align="center" valign="top">
			 <table width="98%" border="0" cellpadding="0" cellspacing="0" class="tabtitle">
              <tr>
                <td width="4%" valign="top"><img src="../../img/pic_dot1.gif" width="37" height="22"></td>
                <td width="96%" valign="middle">当前位置：<a href="#" class="n">应急救援系统</a> &gt;&gt; <a href="#" class="n">事故处理</a> &gt;&gt; <a href="#" class="n">短信通知</a></td>
              </tr>
            </table>
		</td>
	</tr>
   

   
   <!-- 空格 -->
   <tr height="3px">
		<td>
			&nbsp;
		</td>
   </tr>
   

   
   <!-- 空格 -->
   <tr height="5px">
		<td>
			&nbsp;
		</td>
   </tr>
   
   <!-- 数据列表 -->
   <tr>
	<td align="center">
		<iframe src="person.jsp"  name="dataFrame" frameborder="0" width="98%" height="100%" scrolling="no"></iframe>
	</td>
   </tr>
</table>
<!-- 隐藏树 -->
<iframe src="#" frameborder="0" id="treeFrame" name="frame" style="display: none;position: absolute;"></iframe>
</form>

<!-- 批量删除表单  -->
<form action="delmsg.jsp" name="delForm">
	<input type="hidden" value="delBatch" name="actionType">
	<input type="hidden" value="" name="batchIds">
</form>
<iframe src="#" name="actionFrame" style="display: none;"></iframe>
</body>
</html>
